﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Comain
{
    /// <summary>
    /// 商品信息表
    /// </summary>
    [Table("T_Goods")]
    public class T_Goods
    {
        /// <summary>
        /// 商品id
        /// </summary>
        [Key]
        public int Goods_Id { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        [StringLength(30)]
        public string Goods_Name { get; set; } = string.Empty;
        /// <summary>
        /// 商品价格
        /// </summary>
        public decimal Goods_Price { get; set; }
        /// <summary>
        /// 商品预览图
        /// </summary>
        [StringLength(300)]
        public string Goods_Img { get; set; } = string.Empty;
        /// <summary>
        /// 商品状态(true代表上架，false代表下架)
        /// </summary>
        public bool Goods_State { get; set; }
        /// <summary>
        /// 商品描述
        /// </summary>
        [StringLength(200)]
        public string Goods_Remark { get; set; } = string.Empty;

        /// <summary>
        /// 商品品牌编号（逻辑外键）
        /// </summary>
        public int GoodsId { get; set; }
        /// <summary>
        /// 商品分类id（逻辑外键）
        /// </summary>
        public string GoodsType_Id { get; set; }
        /// <summary>
        /// 商品创建时间
        /// </summary>
        public DateTime Goods_Create { get; set; } = DateTime.Now;


        /// <summary>
        /// 逻辑删除
        /// </summary>
        public bool IsDel {  get; set; } = false;
    }
}
